package cn.jetpiece.cloud.system.dp.app.modular.biz.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * dp_t_app
 *
 * @author jetpiece
 * @since 2023-05-15
 */
@Data
@TableName("dp_t_app")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class DpTApp implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
	@TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 应用名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * appKey
     */
    @TableField(value = "app_key")
    private String appKey;

    /**
     * appSecret
     */
    @TableField(value = "app_secret")
    private String appSecret;

    /**
     * url
     */
    @TableField(value = "url")
    private String url;

    /**
     * createUser
     */
    @TableField(value = "create_by")
    private String createBy;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill= FieldFill.INSERT)
    private Date createTime;

    /**
     * updateUser
     */
    @TableField(value = "update_by")
    private String updateBy;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill= FieldFill.UPDATE)
    private Date updateTime;

    /**
     * 数据状态(0:删除,1:正常,2:保留历史)
     */
    @TableField(value = "data_status")
    private Integer dataStatus;
}
